<!DOCTYPE html>
<html>
<head>
  <div th:replace="common/common_resource :: common_css"></div>
  <title th:text="${application.shop_name} +' | 登录'"></title>
</head>
<body class="hold-transition login-page">
<div class="login-box">
<input type="hidden" name="shophosts" th:value="${#httpServletRequest.getContextPath()}"/>
  	<div class="login-logo">
    	<a href="#"><b th:text="${application.shop_name}"></b></a>
  	</div>
  	<div class="login-box-body">
    <p class="login-box-msg">登录</p>
    <form th:action="${#httpServletRequest.getContextPath()}+'/loginSubmit'" id="loginform" method="post">
			
			<div class="form-group has-feedback">
			   <input type="text" class="form-control" name="empUsername" id="empUsername" th:value="${employee!=null} ? ${employee.empUsername} : '' " placeholder="用户名/邮箱/手机号/身份证号"/>
			   <span class="glyphicon glyphicon-user form-control-feedback"></span>
			</div>
			<div class="form-group has-feedback">
			  <input type="password" class="form-control" name="empPassword" th:value="${employee!=null} ? ${employee.empPassword} : '' " name="empPassword" id="password" placeholder="密码"/>
			  <span class="glyphicon glyphicon-lock form-control-feedback"></span>
			</div>
		  	<div class="row" th:if="${session!=null && session.error_count!=null &&session.error_count> T(org.lyq.erp.config.constant.ConfigConstant).MAX_ERROR_COUNT }">
				<div class="col-xs-6 form-group">
					<input type="text" id="checkcode" name="checkcode" class="form-control" ></input>    
				</div>
				<div class="col-xs-6" >
					<img th:src="${#httpServletRequest.getContextPath()}+'/getcaptcha'" height="45" width="120" id="checkimg" />   
				</div>
	       </div>
	      <div class="row">
		        <div class="col-xs-8">
			          <div class="checkbox icheck">
				            <label>
					             <span th:if="${remember==null}"><input type="checkbox" name="remember"  value="1"/>记住密码</span>
					             <span th:if="${remember!=null}" ><input type="checkbox" name="remember" checked="checked"  value="1"/>记住密码</span>
				            </label>
			          </div>
		        </div>
		        <div class="col-xs-4">
	         		 <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
		        </div>
	      </div>
    </form>
    <div class="social-auth-links text-center">
	     <a th:href="${#httpServletRequest.getContextPath()}+'/register'" class="btn btn-block bg-yellow">激活用户 </a>
	     <a href="#" class="btn btn-block bg-red">找回密码</a>
    </div>
  </div>
</div>
<div th:replace="common/common_h5 :: error_message"></div>
<div th:replace="common/common_resource :: common_js"></div>
<script th:src="@{/admin_js/basics/login.js}"></script>
</body>
</html>
